import request from '@/utils/request'

// 查询企业模块列表
export function listRangecompany(query) {
  return request({
    url: '/basic/rangecompany/list',
    method: 'get',
    params: query
  })
}

// 查询企业模块详细
export function getRangecompany(id) {
  return request({
    url: '/basic/rangecompany/' + id,
    method: 'get'
  })
}

// 新增企业模块
export function addRangecompany(data) {
  return request({
    url: '/basic/rangecompany',
    method: 'post',
    data: data
  })
}

// 修改企业模块
export function updateRangecompany(data) {
  return request({
    url: '/basic/rangecompany',
    method: 'put',
    data: data
  })
}

// 删除企业模块
export function delRangecompany(id) {
  return request({
    url: '/basic/rangecompany/' + id,
    method: 'delete'
  })
}

// 导出企业模块
export function exportRangecompany(query) {
  return request({
    url: '/basic/rangecompany/export',
    method: 'get',
    params: query
  })
}